<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>西点科技</title>
		<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
		<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
		<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
		<style type="text/css">
			.navbar{
			    background-color: rgb(65, 177,103);
				/*height: 80px;*/
				border-radius: 0;
			}

			.carousel {
				margin-top: -20px;
			}
			.navbar-nav>li>a{
				width: 100%;
				display: block;
				line-height: 50px;
				font-size: 18px;
				color: white !important;
			}
	
			
			.banner{
				margin-top: -20px;
			}
			@media (min-width: 1200px) {
				.nav_rigth{
					float: right;
				}
			}
			@media (max-width: 800px) {
				.navbar-brand img{
					margin-top: -20px;
				}
			}
		
			
		</style>
	</head>

	<body>
		<!--导航栏-->
		<nav class="navbar navbar-default" role="navigation">
			<div class="container">
				<div class="navbar-header">
					<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#example-navbar-collapse">
						<span class="sr-only">切换导航</span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
					</button>
					<a class="navbar-brand" href="#">
						<img src="http://zhangli6.top/xdkj/img/logo.png"/>
					</a>
				</div>
				<div class="collapse navbar-collapse" id="example-navbar-collapse">
					<ul class="nav navbar-nav nav_rigth">
						<li>
							<a href="#">开设课程</a>
						</li>
						<li>
							<a href="#">师资力量</a>
						</li>
						<li>
							<a href="#">学员风采</a>
						</li>
						<li>
							<a href="#">公司介绍</a>
						</li>
						<li>
							<a href="#">合作企业</a>
						</li>
					</ul>
				</div>
			</div>
		</nav>
		<!--轮播图-->
		<div class="banner">
			<img src="http://zhangli6.top/xdkj/img/banner_02.jpg" class="img-responsive" alt="Cinque Terre">
		</div>
		<!--课程-->
		<div class="kecheng container">
			<div class="col-xs-6 col-sm-4 col-md-3 col-lg-2">
				
			</div>			
		</div>
	</body>
	<script type="text/javascript">
		var imgs = [
			"http://zhangli6.top/xdkj/img/index_09.gif",
			"http://zhangli6.top/xdkj/img/index_09.gif",
			"http://zhangli6.top/xdkj/img/index_09.gif",
			"http://zhangli6.top/xdkj/img/index_09.gif",
			"http://zhangli6.top/xdkj/img/index_09.gif",
			"http://zhangli6.top/xdkj/img/index_09.gif",
			"http://zhangli6.top/xdkj/img/index_09.gif",
			"http://zhangli6.top/xdkj/img/index_09.gif",
			"http://zhangli6.top/xdkj/img/index_09.gif"
		]
		$(".navbar-nav>li").mouseover(function(){
			$(this).css("background-color","green").siblings().css("background-color","");
		})
		
		$.each(imgs, function(index,item) {
			var str = `
				<img src = "${item}"/>
			`;
			$(".kecheng").append(str)
		});
		
		
		

	</script>

</html>